#!/usr/bin/python3
# -*- coding: utf-8 -*-

def demo_filter(items, beg=0, end=0):
    if isinstance(items, list):
        return items[beg:end]
    return items
